package cn.jingzhuan.fm.di.injection

import cn.jingzhuan.fm.App
import cn.jingzhuan.fm.di.module.FMNetworkModule
import cn.jingzhuan.fm.network.FMApiService
import dagger.Component
import javax.inject.Singleton

@Singleton
@Component(modules = [
        FMNetworkModule::class,
        ActivityModule::class,
        FragmentModule::class
])
interface ApplicationComponent {

        fun fmApiService(): FMApiService

        fun inject(app: App)

}